<?php
require_once '../../classes/includeAll_Layer2.php';


$id = filter_input(INPUT_POST,"id");

if(!is_numeric($id)||!$isAdmin)
{
  echo "false";
  exit();
}

require '../../resources/getConnection.php';
$customClass = new Custom($connection);

if($customClass->RemoveCustom($id))
  echo "true";
else
  echo "false";
$connection->disconnectDB();

